package com.cmwa.solution.business.investTrade.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.investTrade.dao.TradeCashDao;
import com.cmwa.solution.business.investTrade.entity.TradeCashVo;
import com.cmwa.solution.business.investTrade.service.TradeCashService;

/**
 * 交易头寸业务层接口
 * @author ex-chenbq
 *
 */
@Service
public class TradeCashServiceImpl implements TradeCashService{

	@Autowired
	private TradeCashDao tradeCashDao;
	
	/**
	 * 分页查询交易头寸数据
	 * @param param
	 * @return
	 */
	public Page<TradeCashVo> queryTradeCashListPage(SearchParam param) {
		List<TradeCashVo> items = tradeCashDao.queryTradeCashListPage(param);
		return Page.create(items, param.getStart(), param.getLimit(), param.getTotal());
	}
}
